<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>日本酒マニア.com 管理画面</title>
  <%= stylesheet_link_tag    "application_auth" %>
  <%= javascript_include_tag "application" %>
  <%= csrf_meta_tags %>
  <!-- ckeditor -->
  <%= javascript_include_tag asset_path("ckeditor.js") %>
  <!-- dropdown menu -->
  <%= stylesheet_link_tag "style" %>
        
  <%= javascript_include_tag "jquery-1.3.1.min.js" %> 
  <%= javascript_include_tag "hoverIntent.js" %>
  <%= javascript_include_tag "jquery.dropdown.js" %>
<!-- Google Analytics -->
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-26039296-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
</script>
<!-- Google Maps -->
<meta name="viewport" content="initial-scale=1.0, user-scalable=yes" />
<%= stylesheet_link_tag "area" %>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript">
  function initialize(latitude, longtitude, zoom) {
		var mapOptions = {
      zoom: zoom,
      center: new google.maps.LatLng(latitude, longtitude),
      mapTypeId: google.maps.MapTypeId.ROADMAP
    };
		map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);
    marker = new google.maps.Marker({
      position: new google.maps.LatLng(latitude, longtitude),
      map: map,
      draggable: true
    });
    google.maps.event.addListener(marker, 'drag', function(){
	    LatLngObj = marker.getPosition();
	    document.getElementById("maker_latitude").value = LatLngObj.lat();
	    document.getElementById("maker_longtitude").value = LatLngObj.lng();
    });
  }
</script>
<script type="text/javascript">
	function copy(text) {
	  var input, success;
	  if ("console" in window && "notifyFirebug" in console) {
	    console.notifyFirebug([text], "copy", "firebugExecuteCommand");
	    success = true;
	  } else {
	    input = document.createElement("input");
	    input.style.position = "absolute";
	    input.style.top = "-100px";
	    input.value = text;
	    input.hidden = true;
	    document.body.appendChild(input);
	    input.select();
	    try {
	      success = document.execCommand("copy", false, null);
	    } catch (ex) {
	      success = false;
	    } finally {
	      document.body.removeChild(input);
	    }
	  }
	  if (!success) {
	    prompt("Press Ctrl+c", text);
	  }
	}
</script>

</head>

<body onload="initialize(<%= @latitude %>, <%= @longtitude %>, <%= @zoom %>)">

<div id="wrapper">
<div id="header">
<!-- 見出し -->
<!-- h1>酒マニア.com</h1 -->
<!-- 概要 -->
<p class="description">日本酒マニアのための、日本酒こだわり検索・通販サイト</p>
<!-- タイトル -->
</div><!-- / header end -->
<!--div id="globalnavi">
<!-- グローバルナビゲーション -->
<!--ul>
  <li><a href="index.html">Home</a></li>
  <li><a href="#">*** リンク ***</a></li>
  <li><a href="#">*** リンク ***</a></li>
  <li><a href="#">*** リンク ***</a></li>
  <li><a href="#">*** リンク ***</a></li>
</ul>
</div--><!-- / globalnavi end -->

<div id="contents">
<!-- コンテンツ ここから -->

<%= yield %>

<!-- コンテンツ ここまで -->
</div><!-- / contents end -->

<div id="sidebar">
<!-- サイドバー ここから -->
  <%= render :partial => "layouts/sidebar_admin" %>
<!-- サイドバー ここまで -->
</div>
</div>

</body>
</html>
